package com.api.gbhg.liuwenbo.test;

import com.alibaba.fastjson.JSON;
import com.google.common.base.Joiner;

import java.util.*;

public class a3_5 {
    public static void main(String[] args) {
        List<String> list = new ArrayList<>();
        list.add("1");
        list.add("1");
        System.out.println(Joiner.on(",").join((Iterable<?>) list));
        Map<String,Object> map = new HashMap<>();
        map.put("1","123");
        map.put("2","123456");
        System.out.println(map.get("2").toString().isEmpty());
        String a = "a@b";
        System.out.println(a.split("@")[1]);

        String b = "b,";
        String[] split = b.split(",");
        System.out.println(split.length);
        System.out.println(JSON.toJSONString(map));

        System.out.println(b.split(",").length);
    }
}
